package GUI;

import flightlifter.SensorSource;
import java.util.Observable;

/**
 * Message passing class for button presses.
 */
public class GUIEvent {

    public String title;
    public float val;
    public SensorSource generator = null;
    public int index = -1;

    /**
     * @param title description of the event
     * @param val allows information to be passed in the event. Meaning will
     * vary depending on the sender.
     */
    public GUIEvent(String title, float val) {
        this.title = title;
        this.val = val;
    }

    public GUIEvent(String title, float val, SensorSource generator, int index) {
        this.title = title;
        this.val = val;
        this.index = index;
        this.generator = generator;

    }
}
